package com.easy.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Staff {

	private Integer id;
	private String login_name;
	private String login_pass;
	private String name;
	private Integer state;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createtime;

	public Staff() {
		super();
	}

	public Staff(Integer id, String login_name, String login_pass, String name, Integer state, Date createtime) {
		super();
		this.id = id;
		this.login_name = login_name;
		this.login_pass = login_pass;
		this.name = name;
		this.state = state;
		this.createtime = createtime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLogin_name() {
		return login_name;
	}

	public void setLogin_name(String login_name) {
		this.login_name = login_name;
	}

	public String getLogin_pass() {
		return login_pass;
	}

	public void setLogin_pass(String login_pass) {
		this.login_pass = login_pass;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Override
	public String toString() {
		return "Staff [id=" + id + ", login_name=" + login_name + ", login_pass=" + login_pass + ", name=" + name
				+ ", state=" + state + ", createtime=" + createtime + "]";
	}

}
